package com.gdzn.signal.api.client;

import com.gdzn.common.core.domain.R;
import com.gdzn.signal.vo.DevCabinetRspVo;
import com.gdzn.signal.service.IDevCabinetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 设备信息获取api
 */
@RestController
@RequestMapping("/client/devCabinet" )
public class DevCabinetClientController {
    @Autowired
    private IDevCabinetService devCabinetService;

    /**
     * 获取设备信息
     * @param devId
     * @return
     */
    @GetMapping("/getDevCabinet/{devId}")
    public R<DevCabinetRspVo> getDevCabinet(@PathVariable String devId) {
        return R.ok(devCabinetService.getDevCabinet(devId),"操作成功");
    }
}
